package com.ftg.learn.day11.ioc;

/**
 * 类信息声明
 * 类的参数 ： 叫 泛型
 * 类的声明上面直接<></>
 *
 * @param <E> 用来表示当前要存储的类的具体类型
 * @author 布衣
 */
public class BeanInfo<E> {

    private String beanPath;

    private Class<E> classObj;

    private E instance;

    public BeanInfo() {

    }

    public BeanInfo(String beanPath, Class<E> classObj, E instance) {
        this.beanPath = beanPath;
        this.classObj = classObj;
        this.instance = instance;
    }

    public String getBeanPath() {
        return beanPath;
    }

    public void setBeanPath(String beanPath) {
        this.beanPath = beanPath;
    }

    public Class<E> getClassObj() {
        return classObj;
    }

    public void setClassObj(Class<E> classObj) {
        this.classObj = classObj;
    }

    public E getInstance() {
        return instance;
    }

    public void setInstance(E instance) {
        this.instance = instance;
    }
}
